﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/Default.Master" Inherits="System.Web.Mvc.ViewPage<SCS.Core.Models.CollectionFontend.ContactSendEmailCollection>" %>
<%@ Import Namespace="SCS.Core" %>
<%@ Import Namespace="SCS.Core.Models" %>
<%@ Import Namespace="SCS.Core.Models.ModelsFontend" %>
<%@ Import Namespace="SCSService" %>
<%@ Import Namespace="MvcReCaptcha.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ContactSendEmail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
<% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("ContactSendEmail", "Home", FormMethod.Post, new { result = "sendFileForm", enctype = "multipart/form-data" }))
       {%>
       <div style="width:900px;margin:0 auto;margin-top:25px;">

        <legend></legend>
        <table  >
            <tr>
                <td>Họ tên* :</td>
                <td><%= Html.TextBoxFor(m => m.Name) %> <span style="color:Red;font-weight:bold"> <%= Html.ValidationMessageFor(m => m.Name) %> </span> </td>
            </tr>
            <tr>
                <td>Công ty :</td>
                <td><%= Html.TextBoxFor(m => m.Company) %></td>
            </tr>
            <tr>
                <td>Địa chỉ :</td>
                <td><%= Html.TextBoxFor(m => m.Address)%></td>
            </tr>
            <tr>
                <td>Điện thoại :</td>
                <td><%= Html.TextBoxFor(m => m.Phone)%></td>
            </tr>
            <tr>
                <td>Email* :</td>
                <td><%= Html.TextBoxFor(m => m.Email)%> <span style="color:Red;font-weight:bold"> <%= Html.ValidationMessageFor(m => m.Email) %> </span> </td>
            </tr>
            <tr>
                <td>Nội dung* :</td>
                <td><%= Html.TextAreaFor(m => m.Content)%> <span style="color:Red;font-weight:bold"> <%= Html.ValidationMessageFor(m => m.Content) %> </span> </td>
            </tr>
           
            <tr>
                <td><%: Html.Label("Code") %></td>
                <td>               
                    <%= Html.GenerateCaptcha() %>
                </td>
            </tr>
            
        </table>
        <span>
        <%=ViewData["result"]%>
        </span>

                      
        <input type="submit" value="" class="ButtonGui"/>
        </div>
 <% } %>

</asp:Content>
